<template>
  <div style="height: 100%; position: relative">
    <el-table :data="data" v-if="data.length">
      <el-table-column type="index" label="序号" width="50" />
      <el-table-column label="类别">
        <template #default="{ row }">
          <span>{{ row.label }}</span>
          <svg-icon style="margin-left: 10px" icon-class="ruler-active" v-if="row.isNeedRuler" />
        </template>
      </el-table-column>
      <el-table-column label="型号">
        <el-input disabled placeholder="请输入" />
      </el-table-column>
      <el-table-column label="尺寸">
        <el-input disabled placeholder="请输入" />
      </el-table-column>
      <el-table-column label="备注">
        <el-input disabled placeholder="请输入" />
      </el-table-column>
    </el-table>
    <el-empty v-else />
  </div>
</template>

<script setup>
defineProps({
  data: {
    type: Array,
    default: () => []
  }
});
</script>

<style scoped lang="scss">
@import "@/assets/styles/mixin";
:deep(.el-empty) {
  @include position-center;
}
</style>
